package com.jindun.paper.ui.box;

import java.util.List;

import com.jindun.common.ContextUtil;
import com.jindun.paper.model.Order;
import com.jindun.paper.model.Order.OrderType;
import com.jindun.paper.service.OrderService;
import com.jindun.paper.ui.bag.OrderListView;

public class BoxOrderListView extends OrderListView {

	private OrderService boxOrderService = ContextUtil.getBean(OrderService.class);
	@Override
	protected List<? extends Order> loadOrders() {
		return boxOrderService.findAll(OrderType.BOX.getCode());
	}

	@Override
	protected void delete(Order order) {
		boxOrderService.delete(order.getId());
	}
	
}
